import { ref } from "vue";

const formItems = ref([
  {
    type: "input",
    name: "name",
    label: "姓名",
    placeholder: "请输入姓名",
  },
  {
    type: "select",
    name: "gender",
    label: "性别",
    options: [
      { label: "男", value: "male" },
      { label: "女", value: "female" },
    ],
  },
  {
    type: "date",
    name: "birthday",
    label: "出生日期",
    valueFormat: "YYYY-MM-DD",
  },
  {
    type: "range",
    name: "dateRange",
    label: "日期范围",
    expandOnly: true, // 废弃
  },
  {
    type: "slot",
    name: "customField",
    label: "自定义字段：",
    slotName: "customSlot", // 指定插槽名称
    expandOnly: true, // 废弃
    hidden: true, // 默认隐藏
  },
]);
